package boot.spring.type.dlx.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
public class DLXReceiver {
    /**
     * 监听队列回调的方法
     *
     * @param msg
     */
    @RabbitListener(queues = "rk_order_dlx_queue")
    public void orderConsumer(Map<String, Object> msg) {
        System.out.println(">>正常订单消费者消息MSG:{}<<"+msg);
    }

}
